Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't overwrite all of CFLAGS/CXXFLAGS in prometheus-cpp build #111

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

timwoj
Copy link
Member

@timwoj timwoj commented Jun 5, 2024

The old code overwrote CFLAGS/CXXFLAGS entirely, which removed all of the flags needed for some of the binary builds. This ensures that those flags persist, minus the one flag that was causing problems with civetweb.

Fixes zeek/zeek#3764

@timwoj timwoj requested a review from 0xxon June 5, 2024 14:59
@timwoj timwoj force-pushed the topic/timw/pic-prometheus-cpp branch from 4b8f3a5 to 6b5845d Compare June 6, 2024 00:36
@timwoj timwoj changed the title Build prometheus-cpp with -fPIC Don't overwrite all of CFLAGS/CXXFLAGS in prometheus-cpp build Jun 6, 2024
@timwoj
Copy link
Member Author

timwoj commented Jun 6, 2024

@0xxon This is ready for review now

@timwoj
Copy link
Member Author

timwoj commented Jun 6, 2024

I also tested this on a Fedora 40 VM with all of the environment variables set as if I running the build on OBS. It passed the build and all of the tests.

@timwoj
Copy link
Member Author

timwoj commented Jun 6, 2024

I think this fixes the build failure on oss-fuzz as well. I ran a local build against the branch and it all linked correctly.

We only really care about the -DDEBUG flag. We need to pass other flags
down from various builds such as the binary builds on OBS.
@timwoj timwoj force-pushed the topic/timw/pic-prometheus-cpp branch from 6b5845d to 16a7722 Compare June 7, 2024 01:20
@timwoj timwoj merged commit aeca56d into master Jun 7, 2024
1 check passed
@timwoj timwoj deleted the topic/timw/pic-prometheus-cpp branch June 7, 2024 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nightly aarch64 binary builds broken on some platforms due to libprometheus-cpp-core
2 participants